export const RefreshOnLocaleChange = {
  watch: {
    // eslint-disable-next-line func-names
    '$store.state.app.locale': function () {
      this.refreshData();
    },
  },
};

export const GoHomeOnLocaleChange = {
  watch: {
    // eslint-disable-next-line func-names
    '$store.state.app.locale': function () {
      if (this.$route.fullPath !== '/') {
        this.$router.replace('/');
      }
    },
  },
};
